package com.edeweiss.community.services.servicesImp;

import com.edeweiss.community.dao.ActivityDao;
import com.edeweiss.community.dao.CommunityDao;
import com.edeweiss.community.dao.daoImp.ActivityDaoImpl;
import com.edeweiss.community.dao.daoImp.CommunityDaoImp;
import com.edeweiss.community.domain.Activity;
import com.edeweiss.community.services.ActivityService;

import java.util.List;

public class ActivityServiceImpl implements ActivityService {
    private ActivityDao activityDao = new ActivityDaoImpl();
    private CommunityDao communityDao = new CommunityDaoImp();
    @Override
    public int applyConductActivity(Activity a) {
        return activityDao.applyConductActivity(a);
    }

    @Override
    public List<Activity> findAllActivity(int status) {
        return activityDao.findAllActivity(status);
    }

    @Override
    public int applyJoinActivity(int sid, int aid) {
        return activityDao.applyJoinActivity(sid,aid);
    }

    @Override
    public int delActivity(int aid) {
        return activityDao.delActivity(aid);
    }


    @Override
    public int activityApprove(int aid, int result,int cid) {
        return activityDao.activityApprove(aid,result,cid);
    }

    @Override
    public List<Activity> indexFindActivity() {
        return activityDao.indexFindActivity();
    }


}
